import java.io.*;

public class OutputStreamWriterDemo13 {
    public static void main(String[] args) throws IOException {

        OutputStreamWriter outputStreamWriter = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream("F:\\IdeaProjects\\MyJava230203\\day27\\dir\\4.txt")));
        outputStreamWriter.write("哈哈");
        outputStreamWriter.write("\n");// \n
        outputStreamWriter.write("呵呵");
        outputStreamWriter.close();
    }
}
